
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<jsp:include page="../headerlinks.jsp" />
<div>
	<form:form id="simpleForm" action="newPost.htm" commandName="fbb" method="POST">
		
		<div class="contentcell cleft">
			<div id="message">
				<p class="ui-state-error-text" id="successfailuremsg"/>
			</div>
		</div>
		<div class="contentcell cright">
			<div class="ui-widget-header ui-state-default">
				<h6 align="center">
					<fmt:message key="new.post.text" />
				</h6>
			</div>
			<div class="ui-widget-content">
				<br>
				<div class="leftmargin">
					<span>
						<label for="newPostTitle" class="ui-widget">
							<fmt:message key="new.post.title.text"/>
						</label>
					</span>
					<span>
						<input class="ui-widget" type="text" id="newPostTitle" name="postTitle" size="50"/>
					</span>
				</div>
				<br>
				<div class="leftmargin">
					<textarea class="ui-widget" id="newPostContent" name="postContent" cols="80" rows="20" wrap="soft"></textarea>
				</div>
				<br>
				<div id="submitButton" align="right" class="rightmargin">
					<input type="submit" id="post" value="<fmt:message key="newpost.submit.button.text"/>" class="ui-button" >
				</div>
				<br>
			</div>
		</div>

	</form:form>
</div>

<jsp:include page="../footer.jsp"></jsp:include>